package d0312;

public class OuterClass {
    private String name;
    private  int age;
    public OuterClass(String name,int age){
        this.name = name;
        this.age = age;
    }
    class InnerClass{
        public InnerClass(){}

        public void display() {
            System.out.println(name+"\t"+age);
        }
    }



    public static void main(String[] args) {
        OuterClass outerClass = new OuterClass("jack",22);
        InnerClass innerClass = outerClass.new InnerClass();
        innerClass.display();
    }}
